.class Lcom/xingbook/audio/activity/r;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/xingbook/audio/d/l;


# instance fields
.field final synthetic a:Lcom/xingbook/audio/activity/XingAudioMainActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/audio/activity/XingAudioMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/xingbook/audio/b/b;)V
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    invoke-static {v0}, Lcom/xingbook/audio/activity/XingAudioMainActivity;->a(Lcom/xingbook/audio/activity/XingAudioMainActivity;)Lcom/xingbook/park/c/a/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/audio/activity/XingAudioMainActivity;->b(I)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    invoke-virtual {v0}, Lcom/xingbook/audio/activity/XingAudioMainActivity;->m()Lcom/xingbook/park/a/e;

    move-result-object v0

    check-cast v0, Lcom/xingbook/audio/a/f;

    invoke-virtual {v0}, Lcom/xingbook/audio/a/f;->b()Lcom/xingbook/audio/b/a;

    move-result-object v0

    invoke-virtual {p1}, Lcom/xingbook/audio/b/b;->af()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    iget-object v2, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    invoke-static {v0, v1, v2, v3, v3}, Lcom/xingbook/ting/activity/TingPlayAct;->a(Lcom/xingbook/audio/b/a;ILandroid/content/Context;ZZ)V

    :cond_0
    return-void
.end method

.method public b(Lcom/xingbook/audio/b/b;)V
    .locals 3

    new-instance v0, Lcom/xingbook/audio/c/c;

    iget-object v1, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    iget-object v2, p0, Lcom/xingbook/audio/activity/r;->a:Lcom/xingbook/audio/activity/XingAudioMainActivity;

    invoke-direct {v0, v1, p1, v2}, Lcom/xingbook/audio/c/c;-><init>(Landroid/content/Context;Lcom/xingbook/audio/b/b;Lcom/xingbook/service/download/f;)V

    invoke-virtual {v0}, Lcom/xingbook/audio/c/c;->a()V

    return-void
.end method
